Search Results: "ghostbar"

30 January 2011

Jose Luis Rivas Contreras: ThinkPads and Amarok2 Multimedia Keys

I love Amarok, since the beginning. But I have had issues since I moved from awesome (and didn t knew it was coincidence) with my multimedia keys. Today I discovered a script called Gnome Multimedia Keys 2 for Amarok2 and now I got it working again, after trying with Banshee, Rhytmbox, Songbird, Exaile I went back to Amarok :D

23 January 2011

Jose Luis Rivas Contreras: WordPress: URL change and cookies issues

I had a site under alpha.mydomain.tld and when I changed it to www.mydomain.tld I did it trough the Settings of WordPress without changing anything else. I added the new domains to my nginx-configuration without removing the alpha subdomain and I got a lot of issues with WordPress cookies. By e.g., I logged in to /wp-admin, closed that tab and reopened in a while and I got to re-login, even if I set Remember Me . After checking, re-change of URL and things like that I just removed the alpha subdomain from my nginx-configuration and everything got solved. Yes, is stupid, but it happens.

22 January 2011

Jose Luis Rivas Contreras: WordPress: Paginating with query_posts()

I discovered, in not a very amusing way that if you use query_posts() then the variables for paginating with The Loop stop working. Fixing this is easy, just add to paged option on the array the variable $paged, in this way:
query_posts(
    'posts_per_page'    => 15,
    'paged'                 => $paged,
);
Or if you don t use it like this, then:
query_posts('posts_per_page=15&paged=' . $paged);
After this, using posts_nav_link() actually works.

3 January 2011

Jose Luis Rivas Contreras: Dear Lazyweb: Arrange posts on WordPress by weight

I have searched all these days a WordPress plugin that let s me arrange my posts by weight or some kind of score system so I can do something like:
query_posts('category_name='.$current_category.'&posts_per_page=1&min_weight=80&max_weight=100');
Then only shows the last post with a weight between 80 and 100, and so on. Any clue of any plugin that does anything at least similar?

Jose Luis Rivas Contreras: 413: Request Entity Too Large with nginx

I m working on a big site, importing a lot of files to a WordPress installation and started to get a bunch of 413 s. After a little bit of googling I found out what was happening: What needs to be done is on /etc/nginx/nginx.conf write:
http  
    client_max_body_size 20M;
    include       /etc/nginx/mime.types;
    A LOT MORE SETTINGS...
Yes, just add client_max_body_size and restart your webserver. This by default is 1M, so anything beyond this will be refused.

30 December 2010

Jose Luis Rivas Contreras: snipmate.vim snippets

I m a long-time snipmate.vim user and I ve been adding occasionally some snippets to it, and today I want to share it to everyone who may be interested on using them. All of them are CSS3, Javascript and HTML5 related, plus 2 (or something) for PHP+WordPress. Anyway, if any of you use WordPress+PHP and use snippets please, let me know. I m working on WordPress these days and some snippets would help me a lot. You can download my snippets from my github, hope its useful for anyone.

28 December 2010

Jose Luis Rivas Contreras: Follow-up[2]: pino-0.3+librest (and not cmake, at all)

So, after having troubles while trying to compile pino-0.3 it turns out is has nothing to do with cmake, nor with librest not shipping gir files but with vala bindings and incompability between those bindings from rest-0.6 and rest-0.7. So if I really want to compile pino-0.3 I have two options: use rest-0.6 or update rest.vapi for vala and send a patch for pino-0.3 to get a working code with rest-0.7 and it s new vala bindings But there s not enough free time for me this holidays so, maybe next time :-/ Anyway, thanks to all those who helped :)

27 December 2010

Jose Luis Rivas Contreras: Follow-up: pino0.3+cmake (and now librest)

Last night I made some changes to what I made for compiling pino0.3: patched CMakeLists.txt so uses rest-0.7 and rest-extras-0.7 and now the last issue is not a problem anymore, but now the error is that can t found them while compiling (here s in paste.debian if you can t see it nicely formatted):
/usr/bin/cmake -E cmake_progress_report "/tmp/buildd/pino-0.3+hg~20101225/obj-i486-linux-gnu/CMakeFiles" 47
[  2%] Generating src/stream_abstract.c, src/globals.c, src/twitter_favorites_stream.c, src/meta_row.c, src/search_interface.c, src/search_dialog.c, src/text_input.c, src/template.c, src/identica_create_dialog.c, src/updates_cell_renderer.c, src/stream_state.c, src/twitter_stream_mentions.c, src/accounts.c, src/accounts_types.c, src/main.c, src/hig_table.c, src/main_window.c, src/twitter_parser.c, src/twitter_recursive_reply.c, src/utils.c, src/identica_account.c, src/settings.c, src/visual_style.c, src/status_choose_bar.c, src/time_utils.c, src/status_box.c, src/menu_indicator.c, src/account_abstract.c, src/stream_meta.c, src/streams_types.c, src/content_view.c, src/img_cache.c, src/tree_widget.c, src/twitter_stream_public.c, src/icon_with_status_cell_renderer.c, src/account_state.c, src/create_dialog_generic.c, src/twitter_create_dialog.c, src/twitter_stream_abstract.c, src/status.c, src/twitter_stream_home.c, src/twitter_account.c, src/pino_enums.c, src/twitter_stream_search.c
/usr/bin/valac -C -b /tmp/buildd/pino-0.3+hg~20101225 -d /tmp/buildd/pino-0.3+hg~20101225/obj-i486-linux-gnu --pkg=glib-2.0 --pkg=gobject-2.0 --pkg=gtk+-2.0 --pkg=gee-1.0 --pkg=gio-2.0 --pkg=libnotify --pkg=libsoup-2.4 --pkg=libxml-2.0 --pkg=webkit-1.0 --pkg=unique-1.0 --pkg=rest-0.7 --pkg=rest-extras-0.7 --thread -g --save-temps -D LIBINDICATE /tmp/buildd/pino-0.3+hg~20101225/src/stream_abstract.vala /tmp/buildd/pino-0.3+hg~20101225/src/globals.vala /tmp/buildd/pino-0.3+hg~20101225/src/twitter_favorites_stream.vala /tmp/buildd/pino-0.3+hg~20101225/src/meta_row.vala /tmp/buildd/pino-0.3+hg~20101225/src/search_interface.vala /tmp/buildd/pino-0.3+hg~20101225/src/search_dialog.vala /tmp/buildd/pino-0.3+hg~20101225/src/text_input.vala /tmp/buildd/pino-0.3+hg~20101225/src/template.vala /tmp/buildd/pino-0.3+hg~20101225/src/identica_create_dialog.vala /tmp/buildd/pino-0.3+hg~20101225/src/updates_cell_renderer.vala /tmp/buildd/pino-0.3+hg~20101225/src/stream_state.vala /tmp/buildd/pino-0.3+hg~20101225/src/twitter_stream_mentions.vala /tmp/buildd/pino-0.3+hg~20101225/src/accounts.vala /tmp/buildd/pino-0.3+hg~20101225/src/accounts_types.vala /tmp/buildd/pino-0.3+hg~20101225/src/main.vala /tmp/buildd/pino-0.3+hg~20101225/src/hig_table.vala /tmp/buildd/pino-0.3+hg~20101225/src/main_window.vala /tmp/buildd/pino-0.3+hg~20101225/src/twitter_parser.vala /tmp/buildd/pino-0.3+hg~20101225/src/twitter_recursive_reply.vala /tmp/buildd/pino-0.3+hg~20101225/src/utils.vala /tmp/buildd/pino-0.3+hg~20101225/src/identica_account.vala /tmp/buildd/pino-0.3+hg~20101225/src/settings.vala /tmp/buildd/pino-0.3+hg~20101225/src/visual_style.vala /tmp/buildd/pino-0.3+hg~20101225/src/status_choose_bar.vala /tmp/buildd/pino-0.3+hg~20101225/src/time_utils.vala /tmp/buildd/pino-0.3+hg~20101225/src/status_box.vala /tmp/buildd/pino-0.3+hg~20101225/src/menu_indicator.vala /tmp/buildd/pino-0.3+hg~20101225/src/account_abstract.vala /tmp/buildd/pino-0.3+hg~20101225/src/stream_meta.vala /tmp/buildd/pino-0.3+hg~20101225/src/streams_types.vala /tmp/buildd/pino-0.3+hg~20101225/src/content_view.vala /tmp/buildd/pino-0.3+hg~20101225/src/img_cache.vala /tmp/buildd/pino-0.3+hg~20101225/src/tree_widget.vala /tmp/buildd/pino-0.3+hg~20101225/src/twitter_stream_public.vala /tmp/buildd/pino-0.3+hg~20101225/src/icon_with_status_cell_renderer.vala /tmp/buildd/pino-0.3+hg~20101225/src/account_state.vala /tmp/buildd/pino-0.3+hg~20101225/src/create_dialog_generic.vala /tmp/buildd/pino-0.3+hg~20101225/src/twitter_create_dialog.vala /tmp/buildd/pino-0.3+hg~20101225/src/twitter_stream_abstract.vala /tmp/buildd/pino-0.3+hg~20101225/src/status.vala /tmp/buildd/pino-0.3+hg~20101225/src/twitter_stream_home.vala /tmp/buildd/pino-0.3+hg~20101225/src/twitter_account.vala /tmp/buildd/pino-0.3+hg~20101225/src/pino_enums.vala /tmp/buildd/pino-0.3+hg~20101225/src/twitter_stream_search.vala /tmp/buildd/pino-0.3+hg~20101225/src/vapi/config.vapi
error: rest-0.7 not found in specified Vala API directories or GObject-Introspection GIR directories
error: rest-extras-0.7 not found in specified Vala API directories or GObject-Introspection GIR directories
Compilation failed: 2 error(s), 0 warning(s)
make[3]: *** [src/stream_abstract.c] Error 1
make[3]: Leaving directory  /tmp/buildd/pino-0.3+hg~20101225/obj-i486-linux-gnu'
make[2]: *** [CMakeFiles/pino.dir/all] Error 2
make[2]: Leaving directory  /tmp/buildd/pino-0.3+hg~20101225/obj-i486-linux-gnu'
make[1]: *** [all] Error 2
make[1]: Leaving directory  /tmp/buildd/pino-0.3+hg~20101225/obj-i486-linux-gnu'
dh_auto_build: make -j1 returned exit code 2
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
E: Failed autobuilding of package
I: unmounting /var/cache/pbuilder/ccache filesystem
I checked and found out that librest doesn t ships the gir files so downloaded sources for librest and made a patched version that ships gir files (rest and rest-extras) but nothing changed. Any suggests, anyone?

26 December 2010

Jose Luis Rivas Contreras: Dear lazyweb: cmake + pino 0.3 little issue

I was trying to build pino 0.3 with the help of debian-sources of pino 0.2+ and found myself with this little issue:
-- checking for module 'unique-1.0 >= 1.0'
--   found unique-1.0 , version 1.1.6
-- checking for module 'gtkspell-2.0 >= 2.0'
--   found gtkspell-2.0 , version 2.0.16
-- checking for module 'rest-0.6 >= 0.6'
--   package 'rest-0.6 >= 0.6' not found
CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:266 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:320 (_pkg_check_modules_internal)
  CMakeLists.txt:62 (pkg_check_modules)
-- checking for module 'rest-extras-0.6 >= 0.6'
--   package 'rest-extras-0.6 >= 0.6' not found
CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:266 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:320 (_pkg_check_modules_internal)
  CMakeLists.txt:63 (pkg_check_modules)
-- checking for module 'indicate >= 0.3'
--   found indicate , version 0.4.1
-- libindicate found, support enabled...
-- Configuring incomplete, errors occurred!
dh_auto_configure: cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_EXE_LINKER_FLAGS=-Wl,--as-needed returned exit code 1
make[1]: *** [override_dh_auto_configure] Error 2
make[1]: Leaving directory  /tmp/buildd/pino-0.3+hg~20101225'
So, OK. Build-depend on librest-dev and librest-extras-dev and problem solved I thought, but no. It kept giving this error even trying with librest-0.7-0 and lib-rest-extras-0.7-0 installed. Anyone can throw a light on this?

25 December 2010

Jose Luis Rivas Contreras: Spring is the best game-engine for strategy

I m loving it. Right now I m playing 1944, is so realistic and everything is very well documented! I m even thinking on joining the Debian Games-team for helping keep this game up-to-date. If you re looking for something like Age of Empires, Spore or anything like that genre just go to springrts.com and choose the mod for the age you want to play! Using Debian? Great! Just apt-get it! Install spring and springlobby and that s it, run springlobby and let the fun begin. See what I m talking about, this is 1944:
<object height="385" width="480"><param name="movie" value="http://www.youtube.com/v/1TuLnYH5Q8U?fs=1&amp;hl=en_US"><param name="allowFullScreen" value="true"><param name="allowscriptaccess" value="always"><embed allowfullscreen="true" allowscriptaccess="always" height="385" src="http://www.youtube.com/v/1TuLnYH5Q8U?fs=1&amp;hl=en_US" type="application/x-shockwave-flash" width="480"></embed></object>

5 September 2010

Jose Luis Rivas Contreras: Multiple -webkit-transition issue

While making a CSS layout for a client I had issues with transitions on WebKit-based browsers, I couldn t make it renderize more than one transition at the same time with the short -webkit-transition, the line was:
-webkit-transition: background-color .25s linear, shadow .25s linear;
Doesn t works on Safari 3 nor in Google Chrome 6 so I tried splitting out the lines to:
-webkit-transition-property: background-color, shadow;
-webkit-transition-duration:.25s, .25s;
-webkit-transition-timing-function: linear, linear;
And now it works! But it sucks, now I have to write three stupid lines instead of one for the same thing, something that works perfectly on Firefox4 and the draft says explicitly it should work, just:
-moz-transition: background-color .25s linear, shadow .25s linear;
Well, at least works

17 August 2010

Jose Luis Rivas Contreras: Git empty branch bash script

Sometimes I create empty branchs while designing some webs and I got tired of making all the thing manually; so, some time ago I wrote a little bash script that may work for any of you to do this task. It takes the first parameter as the name of the new branch to be created, here s the code:
#!/bin/sh
# creating a git empty branch
# it takes as arg the name for the new branch
git-symbolic-ref HEAD refs/heads/$1
rm .git/index
git clean -fdx
git commit --allow-empty -m "Initial empty branch commit"
Hope it works for someone.

6 July 2010

Jose Luis Rivas Contreras: Dropbox for Debian

Tired of the versioning issue between libnautilus from Debian and Ubuntu I decided to create myself the packages for nautilus-dropbox and here they are. I ll maintain them on my repo, so if you want to keep dropbox updated I recommend you to add my repo to your sources.list:
deb http://dl.rivco.net/debian sid main
And if you are on testing/squeeze there s a repo for you too:
deb http://dl.rivco.net/debian squeeze main It s only available for i386 but you can grab the sources adding the deb-src for your distro and build it with dpkg-buildpackage or whatever you want. Soon I ll be building the experimental client as well.

26 May 2010

Jose Luis Rivas Contreras: Chrome vs Firefox, again

Long time ago I stopped using Chrome for daily use and leave it only for my Google services like Gmail and Wave. Now, is my main browser even when it just stop working while I m offline (weird thing, btw). Is fast, starts fast, loads fast, runs javascript very fast. I can use websites as apps without installing another app to complement my browser like Prism and renders fonts wonderfully with @font-face. Now, Firefox, well First of all, I m using nightly builds of alpha version, so it s supposed to fail sometimes and I understand that but, it s not supposed to be faster as well? Loads after 1 min I launch it(UPDATE 2010-05-26: There was a loop on an addon making it start slow, now starts on 10 seconds which is pretty nice) and loads not as smooth as Chrome the websites, even using NoFlash, NoAds and NoJavaScript! In fact, if wasn t because Chrome stops working while I m offline I would not have any reason to use Firefox even while designing websites (just for checking). It s a shame, I really liked a lot Firefox and I hope Firefox4 get a really good speed bump.

25 March 2010

Jose Luis Rivas Contreras: box-shadow is not anymore in CSS3

I was finding a solution to not use a bunch of DIVs with PNGs for shadows in some boxes, and found box-shadow that s supposed to be on CSS3 but checking the CSS3 Background and Borders models found that there s not anymore box-shadow so probably the solution will not be a standard soon. Does anyone knows why?

23 December 2009

Jose Luis Rivas Contreras: It s Google testing us?

I use Firefox and Chrome on parallel so must webs I visit on Chrome I do it as well on Firefox and today Google looks so SO different! On Firefox the layout has blue buttons, the search layout is so different (and nice but), weird at the beginning but with so much logic after you use all the features. It has something with dates ranges that s very nice. It s better using Google on Firefox than Chrome now :-) Here s screenshots on Firefox and Chrome.

20 December 2009

Jose Luis Rivas Contreras: awesome s awful.spawn grr!

Yesterday I was trying to get some of my old keybindings (from awesome 2.x) to work on awesome 3.4 and it was awful the process. With 2.x I worked with awful.spawn and got any bash command I wanted running. Now it changed to awful.util.spawn but if I wanted anything ran on a shell I had to use awful.util.spawn_with_shell but, at least for me, didn t worked. So I got commands like:
scrot ~/tmp/screenshots/$(date +%Y%m%d-%k%M%S).png
That one didn t ran directly. Nor my commands for volume management. So I got a workaround, used only awful.util.spawn calling scripts on my ~/bin path. So if any of you has got issues with this just put your line on a bash script file, make it executable and use a line like:
awful.key( , "Print", function () awful.util.spawn("scriptpath") end),
BTW, don t use ~ nor any thing needs a shell, use full paths to avoid confusion and bad functioning. I used ~/bin/d/anything and didn t worked nor with awful.util.spawn_with_shell. I hope this help anyone with my same issues.

Jose Luis Rivas Contreras: Collecta, searching on real-time

Real-time search on Collecta of xscreensaver

I haven t read of it, and it seems it has been around since a good time. Collecta is a search engine for things in real-time. It searchs on Twitter, Identi.ca, Youtube, Flickr, Blogs, Ustream and shows you what people is saying. It s like a meta-searcher, I guess using API s from those services. But it has it s own API so it will be great for someone that s into web2.x and wants information on real-time from everywhere with just one API. There s a lot of people doing this already and there s a gallery about their development. Maybe tomorrow I will get a little into it, it looks really nice. BTW, it s what powers search.identi.ca

12 December 2009

Jose Luis Rivas Contreras: Chrome font-rendering engine on X11?

Dear Lazyweb, I do love how fonts looks on my Chrome browser, is there a way to have that font-rendering engine on all my X system? Or at least on my Firefox + Thunderbird?

13 October 2009

Jose Luis Rivas Contreras: Banner for pkg-perl

I was just trying to get some banner so I could point from my blog to pkg-perl group on debian. I found the LogoContest on debian wiki but not the winner and since I didn t like any of them for a banner on my blog I decided to make a simple graphic of what I think should represent pkg-perl group on Debian. You can use them as you like: debian-perl-logo debian-perl-logo_white

Next.

Previous.